package com.zm.tools.util.core.generatecode;

import com.zm.tools.util.core.TableMetadateReadUtil;
import com.zm.tools.util.core.generatecode.common.GenerateCodeUtil;

/**
 * @author zoum
 * @create 2018/11/3 15:48
 */
public class Main {


    public static void main(String[] args) throws Exception{
        TableMetadateReadUtil tableMetadateReadUtil = new TableMetadateReadUtil();
            tableMetadateReadUtil.setDriverClassName("com.mysql.jdbc.Driver");
            tableMetadateReadUtil.setUrl("jdbc:mysql://192.168.26.150:3306/member?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&zeroDateTimeBehavior=CONVERT_TO_NULL");
            tableMetadateReadUtil.setUsername("jdq_test");
            tableMetadateReadUtil.setPassword("Rzj@2017_test");
        GenerateCodeUtil generateCodeUtil = new GenerateCodeUtil();
        generateCodeUtil.setTableMetadateReadUtil(tableMetadateReadUtil);
        generateCodeUtil.generateCode("D:\\", "back-member", "coupon_config", "coupon");
    }

}
